package com.py.credit.dao;

import com.py.credit.entity.LhjcRecordMd5;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LhjcDataCheckDao {

    int check(@Param(value = "md5") String md5,
              @Param(value = "cubeId") int cubeId);

    void insert(@Param(value = "recordId") String recordId,
                @Param(value = "cubeId") int cubeId,
                @Param(value = "md5") String md5);

    String selectCfbmId(@Param(value = "name") String name);

    String selectLyId(@Param(value = "name") String name);

    int selectLyCsSameById(@Param(value = "type") String type,
                           @Param(value = "lyId") String lyId,
                           @Param(value = "csId") String csId);

    int selectDeptCsSameById(@Param(value = "type") String type,
                             @Param(value = "deptId") String deptId,
                             @Param(value = "csId") String csId);

    String selectCsByBm(@Param(value = "bm") String bm);

    String selectLyByBm(@Param(value = "bm") String bm);

    void batchInsert(@Param(value = "recordMd5s") List<LhjcRecordMd5> recordMd5s);

    int selectCfGz(@Param(value = "bm") String bm,
                   @Param(value = "name") String name);

    String selectRemarkByBm(@Param(value = "bm") String bm);

    String selectCsTypeByCsRemark(@Param(value = "remark") String remark);
}
